﻿using System;
using System.Collections.Generic;

class GetMaxMethod
{
    static int GetMax(int firstNumber, int secondNumber)
    {
        int max = firstNumber;
        if (secondNumber >= max)
            max = secondNumber;
        return max;
    }

    static void Main()
    {
        Console.WriteLine("Enter three int numbers to compare:");
        Console.WriteLine();
        Console.WriteLine("Enter first number:");
        int firstInt = int.Parse(Console.ReadLine());
        Console.WriteLine("Enter second number:");
        int secondInt = int.Parse(Console.ReadLine());
        Console.WriteLine("Enter third number:");
        int thirdInt = int.Parse(Console.ReadLine());
        int middleInt = GetMax(firstInt, secondInt);
        Console.WriteLine("Max of the three numbers is {0}",GetMax(middleInt, thirdInt));

    }
}

